package org.ahuanlien.crm.service;

import org.ahuanlien.crm.domain.Company;
import org.ahuanlien.crm.query.CompanyQueryObject;
import org.ahuanlien.crm.query.QueryObject;
import org.ahuanlien.crm.util.PageResult;

import java.util.List;

public interface ICompanyService {

	int deleteByPrimaryKey(Long id);

	int insert(Company record);

	Company selectByPrimaryKey(Long id);

	List<Company> selectAll();

	int updateByPrimaryKey(Company record);

    void changeState(Long id);

	PageResult query(CompanyQueryObject qo);
}
